package com.basics.common.utils.weixin;

import java.util.HashMap;
import java.util.List;

public class WxConfigConstants {

    public static String GRANT_TYPE = "authorization_code";
    public static String WX_API = "https://api.weixin.qq.com/sns/jscode2session";
    public static String[] CALLBACK_TYPE = new String[]{"RECHARGE","PAYRETAIL","PAYGOODS","PAYCART","PAYPLAY","PAYHT","PAYSECONDARY"};
    /**
     * 小程序提现错误码
     */
    public static final HashMap<String,String> WX_OUT_MONEY_ERROR_MAP = new HashMap<>();

    public static final String WX_SUCCESS = "SUCCESS";

    public static final String ENCODING_UTF_8 = "UTF-8";

    /**
     *  企业付款到个人
     */
    public static final String WX_OUT_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

    // 微信统一下单接口地址
    public static final String WX_UNIFY_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    public static final String WX_FKM_ORDER_URL = "https://api.mch.weixin.qq.com/pay/micropay";
    // 微信退款订单地址
    public static final String WX_REFUND_ORDER_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";

    /**
     * 查询订单
     */
    public static final String WX_QUERY_ORDER_URL = "https://api.mch.weixin.qq.com/pay/orderquery";

    static {
        WX_OUT_MONEY_ERROR_MAP.put("AMOUNT_LIMIT","您今日的提现额度超限");
        WX_OUT_MONEY_ERROR_MAP.put("SYSTEMERROR","系统繁忙，请稍后再试。");
        WX_OUT_MONEY_ERROR_MAP.put("NAME_MISMATCH","姓名校验出错");
        WX_OUT_MONEY_ERROR_MAP.put("FREQ_LIMIT","超过频率限制，请稍后再试。");
        WX_OUT_MONEY_ERROR_MAP.put("MONEY_LIMIT","提现额度受限");
    }

}
